home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000241_fdc@columbia.edu_Fri Jan 24 11:59:20 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  53 lines

  1. Article: 14033 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Is this an infinite loop bug in find?
  6. Date: 24 Jan 2003 11:38:51 -0500
  7. Organization: Columbia University
  8. Lines: 36
  9. Message-ID: <b0rq6r$aev$1@watsol.cc.columbia.edu>
  10. References: <u7kcv5m5r.fsf@att.net>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1043426332 21280 128.59.39.139 (24 Jan 2003 16:38:52 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 24 Jan 2003 16:38:52 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14033
  16.  
  17. In article <u7kcv5m5r.fsf@att.net>,
  18. Thomas A. Horsley <tom.horsley@att.net> wrote:
  19. : Details: Kermit 95 Version 2.1.3
  20. :          Windows XP Professional
  21. : I'm trying to implement my conditional ssh-add stuff, and starting small
  22. : with a single special case before I try to fancy it up and generalize it.
  23. : ...if I just manually define a similar macro and use it as the
  24. : pattern in a find command, it seems to do the same thing, so the "take" 
  25. : and the surrounding script is probably unimportant.
  26. :
  27. It's a bug: The GREP (FIND) command did not expand pattern variables, and
  28. if given one (such as "\m(foo)") would quickly descend into Quoting Hell.
  29. It should be fixed in the latest C-Kermit daily build:
  30.  
  31.   http://www.columbia.edu/kermit/ckdaily.html
  32.  
  33. but the fix won't appear in K95 until the next release, which is not yet
  34. even planned.  As a workaround, you could do something like this:
  35.  
  36.   define mygrep {
  37.       local xx
  38.       assign xx {
  39.       find \%1 \%2
  40.       if fail end 1
  41.       }
  42.       do xx
  43.       if fail end 1
  44.   }
  45.  
  46. And then use MYGREP instead of GREP.
  47.  
  48. Thanks for reporting it.
  49.  
  50. - Frank
  51.